package com.atguigu.cloud.feignorder80.controller;

import com.atguigu.cloud.common.vo.CommonResult;
import com.atguigu.cloud.feignorder80.service.OpenFeignPaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/payment")
public class FeignOrderController {
    @Resource
    private OpenFeignPaymentService paymentService;
    @GetMapping("/get/{id}")
    public CommonResult getPayment(@PathVariable("id") String id){
        return paymentService.get(id);
    }

}
